home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 17
/
CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso
/
CUCD
/
Programming
/
DiceSource
/
suplib
/
remhead.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-25
|
338b
|
21 lines
#include <stdio.h>
#include <suplib/lists.h>
void *
RemHead(struct List *list)
{
struct Node *node = list->lh_Head;
if (node->ln_Succ) {
node->ln_Succ->ln_Pred = node->ln_Pred;
node->ln_Pred->ln_Succ = node->ln_Succ;
node->ln_Succ = NULL;
node->ln_Pred = NULL;
} else {
node = NULL;
}
return((void *)node);
}